function Main0()
SN = gg.choice({
	 "APP版本",
	 "微信小程序版本",
	 "退出",
}, nil, "")
if SN==1 then
	 Main1()
end
if SN==2 then
	 Main2()
end
if SN==3 then
	 HS12()
end
FX1=0
end

function Main1()
SN = gg.choice({
	 "生命",
	 "攻击",
	 "防御",
	 "关平变吕布",
	 "关平变诸葛亮",
	 "关平变刘关张",
	 "返回",
}, nil, "微信搜索公众号'幸识SQ'持续关注\n先上阵关平在改人物,只能在主页面修改")
if SN==1 then
	 HS3()
end
if SN==2 then
	 HS4()
end
if SN==3 then
	 HS13()
end
if SN==4 then
	 HS15()
end
if SN==5 then
	 HS16()
end
if SN==6 then
	 HS17()
end
if SN==7 then
	 HS7()
end
FX1=0
end

function HS3()
     q=gg.prompt({"输入你想改的生命"},{[1]=""},{[1]="number"})
	 gg.clearResults()
	 gg.setRanges(32)
	 gg.searchNumber("103000D;200D;3D;10F", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("10", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.getResults(100)
	 gg.editAll( q[1], gg.TYPE_FLOAT)
	 gg.toast("生命开启成功")
	 gg.clearResults()
end

function HS4()
     q=gg.prompt({"输入你想改的攻击"},{[1]=""},{[1]="number"})
	 gg.clearResults()
	 gg.setRanges(32)
	 gg.searchNumber("103000D;200D;3D;2F", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("2", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.getResults(100)
	 gg.editAll( q[1], gg.TYPE_FLOAT)
	 gg.toast("攻击开启成功")
	 gg.clearResults()
end

function HS13()
     q=gg.prompt({"输入你想改的防御"},{[1]=""},{[1]="number"})
	 gg.clearResults()
	 gg.setRanges(32)
	 gg.searchNumber("103000D;300D;2D;1F", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("1", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.getResults(100)
	 gg.editAll( q[1], gg.TYPE_FLOAT)
	 gg.toast("防御开启成功")
	 gg.clearResults()
end

function HS15()
	 gg.clearResults()
	 gg.setRanges(32)
	 gg.searchNumber("37801563;114;700000;1692547200", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("700000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
	 gg.getResults(100)
	 gg.editAll("700005", gg.TYPE_DWORD)
	 gg.toast("吕布开启成功")
	 gg.clearResults()
end

function HS16()
	 gg.clearResults()
	 gg.setRanges(32)
	 gg.searchNumber("37801563;114;700000;1692547200", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("700000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
	 gg.getResults(100)
	 gg.editAll("700004", gg.TYPE_DWORD)
	 gg.toast("诸葛亮开启成功")
	 gg.clearResults()
end

function HS17()
	 gg.clearResults()
	 gg.setRanges(32)
	 gg.searchNumber("37801563;114;700000;1692547200", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("700000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
	 gg.getResults(100)
	 gg.editAll("700017", gg.TYPE_DWORD)
	 gg.toast("刘关张开启成功")
	 gg.clearResults()
end

function HS7()
	 Main0()
end

function Main2()
SN = gg.choice({
	 "生命",
	 "攻击",
	 "防御",
	 "关平变吕布",
	 "关平变诸葛亮",
	 "关平变刘关张",
	 "返回",
}, nil, "微信搜索公众号'幸识SQ'持续关注\n先上阵关平在改人物,只能在主页面修改")
if SN==1 then
	 HS5()
end
if SN==2 then
	 HS6()
end
if SN==3 then
	 HS14()
end
if SN==4 then
	 HS18()
end
if SN==5 then
	 HS19()
end
if SN==6 then
	 HS20()
end
if SN==7 then
	 HS8()
end
FX1=0
end

function HS5()
     q=gg.prompt({"输入你想改的生命"},{[1]=""},{[1]="number"})
	 gg.clearResults()
	 gg.setRanges(-1032320)
	 gg.searchNumber("103000D;200D;3D;10F::", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("10", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.getResults(100)
	 gg.editAll( q[1], gg.TYPE_FLOAT)
	 gg.toast("生命开启成功")
	 gg.clearResults()
end

function HS6()
     q=gg.prompt({"输入你想改的攻击"},{[1]=""},{[1]="number"})
	 gg.clearResults()
	 gg.setRanges(-1032320)
	 gg.searchNumber("103000D;200D;3D;2F::", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("2", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.getResults(100)
	 gg.editAll( q[1], gg.TYPE_FLOAT)
	 gg.toast("攻击开启成功")
	 gg.clearResults()
end

function HS14()
     q=gg.prompt({"输入你想改的防御"},{[1]=""},{[1]="number"})
	 gg.clearResults()
	 gg.setRanges(-1032320)
	 gg.searchNumber("103000D;300D;2D;1F::", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("1", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	 gg.getResults(100)
	 gg.editAll( q[1], gg.TYPE_FLOAT)
	 gg.toast("防御开启成功")
	 gg.clearResults()
end

function HS18()
	 gg.clearResults()
	 gg.setRanges(-1032320)
	 gg.searchNumber("37801563;114;700000;1692547200", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("700000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
	 gg.getResults(100)
	 gg.editAll("700005", gg.TYPE_DWORD)
	 gg.toast("吕布开启成功")
	 gg.clearResults()
end

function HS19()
	 gg.clearResults()
	 gg.setRanges(-1032320)
	 gg.searchNumber("37801563;114;700000;1692547200", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("700000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
	 gg.getResults(100)
	 gg.editAll("700004", gg.TYPE_DWORD)
	 gg.toast("诸葛亮开启成功")
	 gg.clearResults()
end

function HS20()
	 gg.clearResults()
	 gg.setRanges(-1032320)
	 gg.searchNumber("37801563;114;700000;1692547200", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("700000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
	 gg.getResults(100)
	 gg.editAll("700017", gg.TYPE_DWORD)
	 gg.toast("刘关张开启成功")
	 gg.clearResults()
end

function HS8()
	 Main0()
end

function HS12()
	 os.exit()
end



while true do
if gg.isVisible(true) then
    FX1 = nil
    gg.setVisible(false)
  end
  if FX1 == nil then
    Main0()
  end
end